<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input data-rule="required" data-order-by='id desc' id="c-number" name="row[number]" type="text" class="form-control selectpage" data-source="feditionaccount/index" data-field="number" value="" placeholder="账户编号" />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Timedate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-timedate" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[timedate]" type="text" value="{$timedate|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sales')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sales" class="form-control" step="0.01" name="row[sales]" type="number" value="" placeholder="填写{:__('Number')}跟{:__('Timedate')}后自动计算,供参考">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!--<dl class="fieldlist" data-template="amounttpl" data-name="row[amount]">-->
                <!--<dd>-->
                    <!--<ins>类型</ins>-->
                    <!--<ins>添加{:__('Amount')}</ins>-->
                    <!--<ins>添加{:__('Amount')}时间</ins>-->
                <!--</dd>-->
                <!--<dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>-->
                <!--&lt;!&ndash;请注意 dd和textarea间不能存在其它任何元素，实际开发中textarea应该添加个hidden进行隐藏&ndash;&gt;-->
                <!--<textarea name="row[amount]" style="display: none" class="form-control" cols="30" rows="5">[{"id":"1"}]</textarea>-->
            <!--</dl>-->
            <!--<script id="amounttpl" type="text/html">-->
                <!--<dd class="form-inline">-->
                    <!--<ins>-->
                        <!--<input data-rule="required" id="c-type" type="text" name="<%=name%>[<%=index%>][type]" class="form-control selectpage" data-source="feditionmoneytype/index" data-field="name" value="" placeholder="类型" />-->
                    <!--</ins>-->
                    <!--<ins>-->
                        <!--<input data-rule="required" type="number" name="<%=name%>[<%=index%>][amount]" class="form-control" value="0.00" placeholder="添加{:__('Amount')}" step="0.01" />-->
                    <!--</ins>-->
                    <!--<ins style="min-width: 250px;">-->
                        <!--<input style="min-width: 250px;" data-rule="required" type="text" name="<%=name%>[<%=index%>][timedate]" class="form-control datetimepicker" value="" placeholder="添加{:__('Amount')}时间" />-->
                    <!--</ins>-->
                    <!--&lt;!&ndash;下面的两个按钮务必保留&ndash;&gt;-->
                    <!--<span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>-->
                    <!--<span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>-->
                <!--</dd>-->
            <!--</script>-->
            <input id="c-amount" class="form-control" step="0.01" name="row[amount]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Advertising')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-advertising" class="form-control" step="0.01" name="row[advertising]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Single_quantity')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-single_quantity" class="form-control" name="row[single_quantity]" type="number" value="0">
        </div>
    </div>
    <!--销售额/广告花费 = 投入产出比-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Output_ratio')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-output_ratio" class="form-control" name="row[output_ratio]" type="text" readonly placeholder="填写{:__('Advertising')}跟{:__('Sales')}后自动计算">
        </div>
    </div>
    <!--广告花费/单量 = 单转成本-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Single_transfer')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-single_transfer" class="form-control" name="row[single_transfer]" type="text" readonly placeholder="填写{:__('Advertising')}跟{:__('Single_quantity')}后自动计算">
        </div>
    </div>
    <!--销售额/单量 = 客单价-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Passenger_volume')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-passenger_volume" class="form-control" name="row[passenger_volume]" type="text" readonly placeholder="填写{:__('Sales')}跟{:__('Single_quantity')}后自动计算">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Delivery_area')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-delivery_area" class="form-control" name="row[delivery_area]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Through_rate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-through_rate" class="form-control" name="row[through_rate]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Conversion_rate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-conversion_rate" class="form-control" name="row[conversion_rate]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cpc')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cpc" class="form-control" name="row[cpc]" type="text">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
